FROM node:14.6.0-slim as builder
WORKDIR /apps/h1tx_ops_platform_front
COPY . /apps/h1tx_ops_platform_front/

RUN npm install --registry=https://registry.npm.taobao.org; npm run build:prod




FROM openresty/openresty:1.19.9.1-4-centos7
COPY --from=builder /apps/h1tx_ops_platform_front/dist/ /usr/local/openresty/nginx/html/